#!/usr/bin/env pytho
# -*- coding: utf-8 -*-


import re,random
from collections import Counter

result = {}
with open('E:/find_IP.txt') as file_object:
    ip = file_object.read()
for num in ip:
    if num in result.keys():
        result[num] += 1
    else:
        result[num] = 1
max_num = max(result.values())
print(max_num)
for item in result.items():
    if item [1] ==max_num:
        print('出现次数最多的数字为:%s  次数为:%s' % (item[0], item[1]))



